<template>
  <div>
    <h1>基础布局</h1>
    <el-row>
      <el-col :span="24"><div class="grid-content bg-purple-dark">1</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="12"><div class="grid-content bg-purple">21</div></el-col>
      <el-col :span="12"><div class="grid-content bg-purple-light">22</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="8"><div class="grid-content bg-purple">31</div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple-light">32</div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple">33</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="6"><div class="grid-content bg-purple">41</div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple-light">42</div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple">43</div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple-light">44</div></el-col>
    </el-row>
    <el-row>
      <el-col :span="4"><div class="grid-content bg-purple">51</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple-light">52</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple">53</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple-light">54</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple">55</div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple-light">56</div></el-col>
    </el-row>

    <h1>分栏间隔</h1>
    <el-row :gutter="80">
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="6"><div class="grid-content bg-purple"></div></el-col>
    </el-row>

    <h1>分栏间隔2</h1>
    <el-row :gutter="80" style="padding: 20px;">
      <el-col :span="12"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="12"><div class="grid-content bg-purple"></div></el-col>
    </el-row>

    <h1>混合布局</h1>
    <el-row :gutter="20">
      <el-col :span="16"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="16"><div class="grid-content bg-purple"></div></el-col>
      <el-col :span="4"><div class="grid-content bg-purple"></div></el-col>
    </el-row>
  </div>
</template>

<script>

  import axios from 'axios'
  export default {
    data() {
      return {
      }
    },
    methods: {
    },
    mounted(){
    }
  };
</script>

<style scoped>
  .el-row {
    margin-bottom: 20px;
    /*&:last-child {
     margin-bottom: 0;
   }*/
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
</style>
